Requirements
Before installing Photogram PHP Script, please ensure that your server meets the following minimum requirements.
- PHP (
7.1, or higher
) - Database (
MySQL 5.7+
orPostgreSQL 9+
)
Extract Files
Extract the zip file that you've downloaded from CodeCanyon on your local device. In extracted contents you'll find below listed folders which will be used in upcoming steps for installing script.
- Database: This folder contains SQL assets that will be used for setting up database.
- PHP Script: This folder contains PHP script that will be uploaded on your web server.
Setup Database
Photogram support both MySQL and PostgreSQL databases. Note that you only need one database and therefore you've setup either MySQL or PostgreSQL(whichever is available on your server).
Setup MySQL Database
- Create a new MySQL Database.
- Create a new MySQL username and password.
-
Import
MySQL.sql
into your MySQL database. -
Open
config.php
file from the PHP Server folder and update following settings.-
Set Database username, password and Database name to the ones you created in previous steps:
-
Set database type to
DATABASE_TYPE_MYSQL
:
-
Set Database username, password and Database name to the ones you created in previous steps:
Setup PostgreSQL Database
- Create a new PostgreSQL Database.
- Create a new PostgreSQL username and password.
-
Open
PostgreSQL.sql
file(inside Database folder) and replaceDATABASE_USERNAME
with username created in previous step. -
Restore/Import
PostgreSQL.sql
into your PostgreSQL database. -
Open
config.php
file from the PHP Server folder and update following settings.-
Set Database username, password and Database name to the ones you created in previous steps:
-
Set database type to
DATABASE_TYPE_POSTGRESQL
:
-
Set Database username, password and Database name to the ones you created in previous steps:
We can't go through each step in more detail since each hosting provider provides different set of tools. If you need help, feel free to contact us via
this contact form.
Setup PHP Script
Open
config.php
from the PHP Script folder and configure following settings.
-
Set Installation URL to the location where you want the product to be installed at.
- Save changes.
Upload Files
After completing configuration, last step is to upload files.
- Upload all files from
PHP Script
folder to your web server - Set the chmod to
755
,775
or777
(depending on the server configuration) to the uploads folder and its subfolders
Need help?
If you've questions or you need help, feel free to contact us.